<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>头像</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">

    <link rel="stylesheet" href="/public/touxiang/css/weui.css">
    <link rel="stylesheet" href="/public/touxiang/css/jquery-weui.css">
    <link rel="stylesheet" href="/public/touxiang/css/style.css">
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_689900_tgundrn0e1a46lxr.css">

    <style>
    </style>
</head>
<body class="back1">


<div class="index-top-fix">
    <a href="{:__URL('APP_MAIN/member/index')}" class="iconfont icon-left- left"></a>
    <p class="title">头像</p>
</div>

<div class="mt50"></div>

<div class="gegu-list-box">
    <ul>
        <li>
            <p>头像</p>
            <p>昵称</p>
        </li>
    </ul>

        {if condition="$status == 0"}
        <!--<div class="weui-flex">-->
            <!--<div class="weui-flex__item">暂无数据</div>-->
        <!--</div>-->
        {else /}
    <ul id="list">
        {volist name="data" id="vo"}
        <li style="line-height: 55px;">
            <a href="{:__URL('APP_MAIN/member/lower_level_order?uid='.$vo['uid'])}">
                <p>
                    {if condition="$vo.user_headimg == '' or $vo.user_headimg == null"}
                    <img src="/public/touxiang/images/photo.jpg" class="photo">
                    {else /}
                    <img src="{$vo.user_headimg}" class="photo">
                    {/if}
                </p>
                <p>{$vo.nick_name}</p>
            </a>
        </li>
        {/volist}
    </ul>
        {/if}

</div>

<!--<div class="weui-loadmore">-->
<!--<i class="weui-loading"></i>-->
<!--<span class="weui-loadmore__tips">正在加载</span>-->
<!--</div>-->

<script src="/public/touxiang/js/jquery.min.js"></script>
<script src="/public/touxiang/js/jquery-weui.min.js"></script>
<script>


    var loading = false;  //状态标记
    $(document.body).infinite().on("infinite", function() {
        if(loading) return;
        loading = true;
        setTimeout(function() {
            $("#list").append("<li><a href=\"javascript:;\">\n" +
                "            <p><img src=\"images/photo.jpg\" class=\"photo\"></p>\n" +
                "            <p>中华</p>\n" +
                "        </a></li>");
            loading = false;
        }, 1500);   //模拟延迟
    });
</script>
</body>
</html>

